package r5.pierwszy.raz;

public class Konwertowanietablic {

	public static void main(String[] args) {

		Manager[] managers = new Manager[10];
		Employee[] staff = managers;
//		staff[0] = new Manager("Henryk Kwiatek", 2000, 2005, 1, 15);
		staff[0] = new Employee("Henryk Kwiatek", 2000, 2005, 1, 15);
		
		managers[0].setBonus(2000);
		System.out.println(managers[0].getBonus());
//		staff[0].setBonus(2000);
		
		System.out.println(managers[0].getSalary());
		System.out.println(staff[0].getSalary());
	}

}
